import request from '@/utils/request'

export function fetchPaymentRecordList(params) {
  return request({
    url: '/api/bill/paymentRecord/getList',
    method: 'post',
    params
  })
}

export function createPaymentRecord(params) {
  return request({
    url: '/api/bill/paymentRecord/add',
    method: 'post',
    params
  })
}

export function updatePaymentRecord(data) {
  return request({
    url: '/api/bill/paymentRecord/update',
    method: 'post',
    data
  })
}

export function deletePaymentRecord(params) {
  return request({
    url: '/api/bill/paymentRecord/delete',
    method: 'post',
    params
  })
}

export function fetchSelectItemList() {
  return request({
    url: '/api/bill/paymentRecord/fetchSelectItem',
    method: 'post',
  })
}